# while 循环
hp = 3
while hp > 0:
    print(hp)   # 3 2 1
    hp -= 1
print(hp)       # 0

# continue 跳过本次循环
i=0
while i < 10:
    i += 1
    if i == 5:
        continue
    print(i)    
# 1 2 3 4 6 7 8 9 10

# break 跳出循环
i=0
while i < 10:
    i += 1
    if i == 5:
        break
    print(i)  
# 1 2 3 4    
